<%@ page import="farmaweb.Fornecedor" %>



<div class="fieldcontain ${hasErrors(bean: fornecedorInstance, field: 'cnpj', 'error')} required">
	<label for="cnpj">
		<g:message code="fornecedor.cnpj.label" default="Cnpj" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="cnpj" maxlength="18" required="" value="${fornecedorInstance?.cnpj}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: fornecedorInstance, field: 'razaoSocial', 'error')} required">
	<label for="razaoSocial">
		<g:message code="fornecedor.razaoSocial.label" default="Razao Social" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="razaoSocial" maxlength="50" required="" value="${fornecedorInstance?.razaoSocial}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: fornecedorInstance, field: 'inscricaoEstadual', 'error')} ">
	<label for="inscricaoEstadual">
		<g:message code="fornecedor.inscricaoEstadual.label" default="Inscricao Estadual" />
		
	</label>
	<g:textField name="inscricaoEstadual" maxlength="18" value="${fornecedorInstance?.inscricaoEstadual}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: fornecedorInstance, field: 'fone', 'error')} ">
	<label for="fone">
		<g:message code="fornecedor.fone.label" default="Fone" />
		
	</label>
	<g:textField name="fone" maxlength="14" value="${fornecedorInstance?.fone}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: fornecedorInstance, field: 'fax', 'error')} ">
	<label for="fax">
		<g:message code="fornecedor.fax.label" default="Fax" />
		
	</label>
	<g:textField name="fax" maxlength="14" value="${fornecedorInstance?.fax}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: fornecedorInstance, field: 'email', 'error')} ">
	<label for="email">
		<g:message code="fornecedor.email.label" default="Email" />
		
	</label>
	<g:field type="email" name="email" value="${fornecedorInstance?.email}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: fornecedorInstance, field: 'pessoaContato', 'error')} ">
	<label for="pessoaContato">
		<g:message code="fornecedor.pessoaContato.label" default="Pessoa Contato" />
		
	</label>
	<g:textField name="pessoaContato" maxlength="50" value="${fornecedorInstance?.pessoaContato}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: fornecedorInstance, field: 'logradouro', 'error')} ">
	<label for="logradouro">
		<g:message code="fornecedor.logradouro.label" default="Logradouro" />
		
	</label>
	<g:textField name="logradouro" maxlength="50" value="${fornecedorInstance?.logradouro}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: fornecedorInstance, field: 'numero', 'error')} ">
	<label for="numero">
		<g:message code="fornecedor.numero.label" default="Numero" />
		
	</label>
	<g:textField name="numero" maxlength="5" value="${fornecedorInstance?.numero}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: fornecedorInstance, field: 'complemento', 'error')} ">
	<label for="complemento">
		<g:message code="fornecedor.complemento.label" default="Complemento" />
		
	</label>
	<g:textField name="complemento" maxlength="25" value="${fornecedorInstance?.complemento}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: fornecedorInstance, field: 'bairro', 'error')} ">
	<label for="bairro">
		<g:message code="fornecedor.bairro.label" default="Bairro" />
		
	</label>
	<g:textField name="bairro" maxlength="25" value="${fornecedorInstance?.bairro}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: fornecedorInstance, field: 'cidade', 'error')} ">
	<label for="cidade">
		<g:message code="fornecedor.cidade.label" default="Cidade" />
		
	</label>
	<g:textField name="cidade" maxlength="30" value="${fornecedorInstance?.cidade}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: fornecedorInstance, field: 'uf', 'error')} ">
	<label for="uf">
		<g:message code="fornecedor.uf.label" default="Uf" />
		
	</label>
	<g:textField name="uf" maxlength="2" value="${fornecedorInstance?.uf}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: fornecedorInstance, field: 'cep', 'error')} ">
	<label for="cep">
		<g:message code="fornecedor.cep.label" default="Cep" />
		
	</label>
	<g:textField name="cep" maxlength="9" value="${fornecedorInstance?.cep}"/>
</div>

